<include file="Public:html" />

<link type="text/css" rel="stylesheet" media="screen" href="../Public/css/auction.css" /> 
</head> 
 
 
<body> 
 
<!-- #paiban page --> 
<div id="paiban" class="homepage skin"> 
 
 
    <!-- #header --> 
    <include file="Public:header" />
    <!-- #header end --> 
    <!-- #auctionDetail --> 
    <div id="auctionDetail" class="mainbody"> 
    
        <div id="container">
              <div class="sc_biaoti">
              <h2>
                  <img alt="" src="../Public/images/sc_jfdh.gif" />
              </h2>
             
              </div>
			<form name="NULL" id="buyMallForm" method="post" action="__APP__/Mall/check">
			<input type="hidden" name="ajaxpost" value="true" />
			<input type="hidden" name="id" id="id" value="{$malldata.id}" />
               <div class="sc_xiangxi">
			<div class="dd_table_1" >
            <div class="dd_table_1_1">
                <div class="sc_hang">
                    <div class="sc_hang1">商品：</div>
				    <div class="sc_hang2">
                    <a href="{:U('Mall/detail/id'.$malldata['id'])}" target="_blank">{$malldata.title}</a>
                    </div>
                 </div>
                 <div class="sc_hang">
			        <div class="sc_hang1">运费：</div>
                    <div class="sc_hang2"><span id='goodsfreight'>兑换免运费</span>
                    </div>
                 </div>
                 <div class="sc_hang">
                    <div class="sc_hang1">单价：</div>
				    <div class="sc_hang2">
                        <span id='integral'> {$malldata.integral} </span> {$Think.config.sysconfig.pointc_name}
                    </div >
                   </div>
                 <div class="sc_ha">
			        <div class="sc_hang1">图片：</div>
				    
                  </div>
                   <div>
                  <div class="sc_hang_img">
                    <img src='__PUBLIC__/accessory/img/{$malldata.accessory.0.thumbnail}' />
                    </div>
                    </div>
			   </div>
               
             </div>
              <table width="45%" border="0" align="center" cellpadding="5" cellspacing="0" class="dd_table_2">
			  <tr>
				<td width="22%" align="right">数量：</td>
				<td width="75%"><input type="text" id='num' name="num" class="text_in" value="1" /></td>
			  </tr>
			  <tr>

				<td align="right">收货人：</td>
				<td><input type="text" name="recipient" class="text_in" value="{$user.realname}" /></td>
			  </tr>
			  <tr>
				<td align="right">邮编：</td>
				<td><input type="text" name="postalcode" class="text_in" value="" /></td>
			  </tr>
			  <tr>
				<td align="right">收货地址：</td>
				<td><input type="text" name="address" class="text_in" value="" size="45" /></td>
			  </tr>
			  <tr>
				<td align="right">联系电话：</td>
				<td><input type="text" name="tel" class="text_in" value="{$user.tel}" /></td>
			  </tr>
			  <tr>
				<td align="right">备注：</td>

				<td><textarea name="remark" rows="5" cols="40"></textarea></td>
			  </tr>
			  <tr>
				<td align="right">总价：</td>
				<td><span id='total' style="color: red;font-size: 22px;font-weight: bold;">&nbsp;{$Think.config.sysconfig.pointc_name}</span></td>
			  </tr>
              <tr><td colspan="2"><span id="minfotips"></span></td></tr>
			  <tr>
				<td align="right">&nbsp;</td>
				<td class="sc_dh_but" >
                    <span id='bid_btn_{$malldata.id}' jtTitle="提示" jtWidth="150"> 
                    <span class="first-child"><a id="{$malldata.id}" name="{$malldata.id}" href="javascript:if(confirm('确定要兑换此商品吗?'))buycheck();"></a></span>
                    </span>							
                </td>
			  </tr>
              
			</table>
           
            </div>
			<script type=text/javascript>
				$(document).ready(function(){
					$('#num').blur(function(){
						count();
					});
					count();
				});

				function count(){
					var integral = parseInt($('#integral').html());
					var num = parseInt($('#num').val());
					
					var total = integral*num;
					var totalhtml = total+"&nbsp;{$Think.config.sysconfig.pointc_name}";

					$('#total').html(totalhtml);
				}
			</script>
			</form>

        </div>
    </div> 
<!-- #auctionDetail end --> 
    <!-- #footer --> 
    <include file="Public:footer" />
    <!-- #footer end --> 
 
 
</div> 
<!-- #paiban page end --> 
 
</body> 
</html>